//
//  FoodDetailsViewController.m
//  ShiWuPai
//
//  Created by app on 16/11/30.
//  Copyright © 2016年 QQ:244987427. All rights reserved.
//

#import "FoodDetailsViewController.h"
#import "BaseNetworkRequest.h"
#import "BaseNetworkRequest+FoodInfoDetails.h"

#import "WHFoodDetails.h"
@interface FoodDetailsViewController ()

@property (nonatomic, strong) WHFoodDetails *foodDetails;
@end

@implementation FoodDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self requestData];
    UIButton *button;
    button.layer.borderWidth=1;
    button.layer.borderColor=[[UIColor lightGrayColor] CGColor];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
#pragma mark - network request
-(void)requestData{
    [BaseNetworkRequest getFoodDetailsWithCode:self.code success:^(id responseObj, NSError *error) {
        if (!error) {
            self.foodDetails=responseObj;
            
        }
    }];
}

@end
